<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='工厂', subtext='管理系统中工厂数据'">

<head>
  <title>工厂</title>
</head>
<body>

  <th:block layout:fragment="content">
    <div class="box-body m-b-sm border-bottom">
      <form class="form-horizontal search-form" role="form">
        <div class="row">
          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">工厂编号</label>
              <div class="col-sm-9">
                <input type="text" id="no" name="no" placeholder="输入编号搜索" class="form-control" />
              </div>
            </div>
          </div>
          <!--
          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">SAP工厂编号</label>
              <div class="col-sm-9">
                <input type="text" id="sapPlantNo" name="sapPlantNo" placeholder="输入SAP工厂编号搜索" class="form-control" />
              </div>
            </div>
          </div>
          -->
          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">中文名称</label>
              <div class="col-sm-9">
                <input type="text" id="name" name="name" placeholder="输入中文名称搜索" class="form-control" />
              </div>
            </div>
          </div>
        </div>
        <div class="row m-t">
          <div class="col-lg-12 seach-button">
            <div class="pull-right">
              <button type="submit" id="search" class="btn btn-primary">
                <i class="fa fa-search"></i> 搜索
              </button>
              <button type="reset" id="clear" class="btn btn-danger">
                <i class="fa fa-remove"></i> 清除
              </button>
            </div>
          </div>
        </div>
      </form>
    </div>

    <div class="row">
      <div class="col-lg-12">
        <div class="box">
          <div class="box-body">
            <h2>
              <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/add|}" th:title="添加工厂">
                <i class="fa fa-fw fa-plus"></i> 添加
              </a>
              <a  class="btn btn-danger btn-sm delAll" href="javascript:;" th:title="删除工厂">
                <i class="fa fa-fw fa-trash"></i> 删除
              </a>
            </h2>
            <div id="tableWrapper">
              <table id="table" class="table table-striped table-hover">
                <thead>
                  <tr>
                    <th style="width:40px;">
                      <a href="javascript:;" class="selectAll" title="全选">全选</a>
                    </th>
                    <th style="width:100px;">工厂编号</th>
                    <th style="width:100px;">SAP工厂编号</th>
                    <th style="width:100px;">SAP公司代码</th>
                    <th style="width:100px;">邓白氏码</th>
                    <th style="width:100px;">中文名称</th>
                    <th style="width:100px;">中文简称</th>
                    <th style="width:80px;">英文名称</th>
                    <th style="width:80px;">英文简称</th>
                    <th style="width:100px;">地址</th>
                    <th style="width:40px;">激活</th>
                    <th style="width:120px;">操作</th>
                  </tr>
                </thead>
                <tbody>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    <form id="delForm" method="post" style="display: none" th:action="@{|${baseUrl}/del|}">
      <input id="ids" type="hidden" name="ids" />

    </form>
  </th:block>
  <th:block layout:fragment="scripts">
    <script th:src="@{|${theme}/js/app/master/plant_list.js?v=${applicationVersion}|}" th:inline="javascript"></script>
  </th:block>
</body>

</html>
